<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class THisdataLtspower extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_hisdata_ltspower', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('hd_index')->nullable(false)->comment('');
			$table->datetime('hd_datetime')->nullable(false)->comment('');
			$table->datetime('rd_updatetime')->nullable(false)->comment('');
			$table->unsignedInteger('pdi_index')->nullable(false)->default(0)->comment('');
			$table->float('hd_s1_AB_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s1_BC_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s1_CA_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s1_A_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s1_B_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s1_C_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s1_Fre_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s2_AB_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s2_BC_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s2_CA_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s2_A_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s2_B_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s2_C_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_s2_Fre_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_inputS_plu_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_out_AB_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_out_BC_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_out_CA_LVol_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_out_A_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_out_B_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_out_C_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_out_Fre_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_A_Load_percent_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_B_Load_percent_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_C_Load_percent_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_total_viewP_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_total_HP_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_A_Pyinshu_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_B_Pyinshu_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_C_Pyinshu_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_Zero_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_B_viewP_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_C_viewP_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_B_HP_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_C_HP_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_1_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_2_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_3_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_4_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_5_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_6_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_7_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_8_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_9_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_10_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_11_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_12_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_13_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_14_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_15_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_16_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_17_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_18_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_19_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_20_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_21_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_22_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_23_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_24_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_25_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_26_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_27_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_28_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_29_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_30_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_31_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_32_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_33_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_34_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_35_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_36_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_37_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_38_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_39_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_zhilu_40_Cur_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_firstPri_Sourse_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_cur_Sourse_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->float('hd_kg_state_LTS', 9, 2)->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_jtg_dlu_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_jtg_dlu_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_jtg_klu_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_jtg_klu_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_A_fengji_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_CtrModul_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_elec_fuzhuS_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_fuzhuS_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_fuzhuS_S1_exIn_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_fuzhuS_S2_exIn_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_eleCtr_conn_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_outV_checkModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_Vol_checkModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_Vol_checkModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_jtg_checkModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_jtg_checkModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_Cur_checkModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_Cur_checkModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_qdModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_qdModule_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_inner_CAN_conn_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_kg_CB1_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_kg_CB2_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_sanreqiHT_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_ks_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_ms_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_extraPress_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_Fre_Exep_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_exception_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_ks_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_ms_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_extraPress_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_Fre_Exep_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_exception_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_etrCur_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_etrCur_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_fenzhi_etrCur_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_fenzhi_etrCur_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_inS_step_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_STS_ready_surp_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_auto_turn_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_kg_CB1_dk_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_kg_CB2_dk_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_preppassway_CB4cls_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_preppassway_CB5cls_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_outKG_CB3open_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_outKG_CB3Aopen_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_order_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_order_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_dely_trun_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_out_press_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_warn_full_TLS')->nullable()->default(0)->comment('');
			$table->boolean('hd_transtor_extT_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_agent_close_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_B_fengji_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_prep_kg_protect_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_kg_CB1cls_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_kg_CB2cls_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s1_preppassway_CB4open_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_s2_preppassway_CB5open_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_outKG_CB3cls_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_outKG_CB3Acls_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_devConn_LTS')->nullable()->default(0)->comment('');
			$table->boolean('hd_NetCom_LTS')->nullable()->default(0)->comment('');
			$table->unique('hd_index', 'hd_index');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_hisdata_ltspower');
    }
}
